package com.ikun.admin.modules.sys.vo;

import com.ikun.admin.modules.sys.build.queryBuild.RealNameQueryBuilder;
import com.ikun.common.search.annotation.QueryUtil;
import com.ikun.common.search.enums.QueryModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @ClassName BaseLogListParamVo
 * @Description:
 * @CreateDate: 2024/7/28 2:01
 */
@Data
@ApiModel("通用日志参数vo")
public class BaseLogListParamVo {
    @ApiModelProperty("用户名称")
    @QueryUtil(colName = "creator",customProcess = true,customClass = RealNameQueryBuilder.class)
    private String realName;

    @ApiModelProperty("日志查询 开始时间")
    @QueryUtil(colName = "create_time",queryMode = QueryModel.GE)
    private LocalDateTime startTime;

    @ApiModelProperty("日志查询 结束时间")
    @QueryUtil(colName = "create_time",queryMode = QueryModel.LE)
    private LocalDateTime endTime;
}
